From ece8f4f2592288a1511afabc6ed35cbb2ef7c8b0 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Tue, 2 Oct 2007 09:27:22 +0100 Subject: [PATCH] xend: Fix refactoring done in CS 15938 in security.py. Signed-off-by: Stefan Berger --- tools/python/xen/util/xsm/acm/acm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/python/xen/util/xsm/acm/acm.py b/tools/python/xen/util/xsm/acm/acm.py index 52f6ad6333..d58652e06c 100644 --- a/tools/python/xen/util/xsm/acm/acm.py +++ b/tools/python/xen/util/xsm/acm/acm.py @@ -1309,7 +1309,7 @@ def parse_security_label(security_label): return security_label def set_security_label(policy, label): - if label != "" and policy != "": + if label and policy and label != "" and policy != "": return "%s:%s:%s" % (xsconstants.ACM_POLICY_ID, policy, label) else: return "" -- 2.30.2